{% extends "polls/base.html" %}

{% block title %}
{{ title }}
{% endblock %}

{% block content %}
<span style='color: red'>{{ errmsg }}</span><br>
{% if latest_questions %}
<ul>
{% for q in latest_questions %}
  <li><a href="{% url 'polls:detail' q.pk %}">{{ q.question_text }}</a></li>
{% endfor %}
</ul>
{% else %}
No polls are available.
{% endif %}
{% endblock %}
